package com.sjx.boundarycallback.ui;

import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import com.sjx.boundarycallback.R;
import com.sjx.boundarycallback.databinding.ActivityVolumeBinding;
import com.sjx.sjxlibrary.log.HiLog;


public class VolumeActivity extends AppCompatActivity {

    private ActivityVolumeBinding mBinding;
    private static String TAG = "VolumeActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_volume);
//        increase volume
        mBinding.btnIncrease.setOnClickListener(view -> {
            mBinding.volumeView.adjustVolume(true);
            HiLog.et(TAG, "test sjxLog");
        });

//        decrease volume
        mBinding.btnDecrease.setOnClickListener(view -> mBinding.volumeView.adjustVolume(false));

    }
}